home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 75 / MOBICLIC 75.ISO / pc / DATA / TOUTEDIT / TOUT_MATOS.cst / 00007_Script_GESTION_BTONS_NAVIGATEURS < prev    next >
Text File  |  2005-06-15  |  2KB  |  65 lines

  1. global gJLM_W,gL_TOUT
  2. property pSprite, pSpriteNo,pMembername,pSpriteName,pNo
  3. ----------------------------------
  4. on beginsprite me
  5.   pSpriteNo = me.spriteNum
  6.   pSprite = _movie.sprite(pSpriteNo)
  7.   pMembername = pSprite.member.name
  8.   pSpriteName = pSprite.name
  9.   pNo = extractNo(sprite(pSpriteNo+1).member.name)
  10. end
  11. ----------------------------------- 
  12. on mouseEnter me
  13.   if the pauseState = 1 then exit
  14.   if gJLM_W > 0 then exit
  15.   _player.cursor(280)
  16.   pSprite.member = pMembername&"_R"
  17.   pSprite.loc = pSprite.loc + point(3,3)
  18.   case(pNo) of
  19.     1:
  20.       son = "colomb"
  21.     2:
  22.       son = "gama"
  23.     3:
  24.       son = "magellan"
  25.     4:
  26.       son = "cartier"
  27.   end case
  28.   lowjoueson(son,2)
  29.   bulle("@IB"&gimme2digits(pNo),"B",me,2,1,0,2,70)
  30.   _movie.updateStage()
  31. end
  32. ----------------------------------- 
  33. on mouseWithin me
  34.   if the pauseState = 1 then exit
  35.   if gJLM_W > 0 then exit
  36.   _player.cursor(280)
  37. end
  38. ---------------------------------
  39. on mouseLeave me
  40.   _player.cursor(-1)
  41.   if the pauseState = 1 then exit
  42.   if gJLM_W > 0 then exit
  43.   coupeson(2)
  44.   bulle(0)
  45.   _movie.puppetSprite(pSpriteNo , FALSE)
  46. end
  47. ----------------------------------- 
  48. on mouseUp me
  49.   if the pauseState = 1 then exit
  50.   if gJLM_W > 0 then exit
  51.   _player.cursor(-1)
  52.   bulle(0)
  53.   case(pNo) of
  54.     1:
  55.       if zNoSRub()-1 = 1 then
  56.         _movie.go("PRESA")
  57.       else
  58.         goSameRub(pNo)
  59.       end if
  60.     otherwise:
  61.       goSameRub(pNo)
  62.   end case
  63. end
  64. ----------------------------------- 
  65.